SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[DnnProduct_CDS_TemplatesGetDefault]
	@DistributorID varchar(50),
	@Type varchar(20)
AS
BEGIN
	SELECT [ID], DistributorID, [Name], [Description], [Default], [Type]
	FROM [DnnProduct_CDS_Templates]
	WHERE DistributorID = @DistributorID AND [Default] = 1 AND [Type] = @Type
END
GO
